<?php get_header(); ?>

    <div class="container">
        <div class="row">
            <div class="col-8">
                
                <?php if (have_posts()) : ?>

                    <?php if (is_home() && !is_front_page()) : ?>
                        <header>
                            <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
                        </header>
                    <?php endif; ?>

                    <?php
                    // Start the loop.
                    while (have_posts()) :
                        the_post();
                        get_template_part('content', get_post_format());

                        // End the loop.
                    endwhile;

                // If no content, include the "No posts found" template.
                else :
                    get_template_part('content', 'none');
                endif;
                ?>

            </div>
            <div class="col-4">
                <?php get_sidebar(); ?>
            </div>
        </div>
    </div>

<?php get_footer(); ?>